From a4d0595b70aab0cc71a6f4721654a961190f5180 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 25 Jun 2023 13:56:22 +0100 Subject: Support init funcs in WASM binary format --- ...mpiler.testing.snapshots.Snapshotter)].expected | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.WasmBinaryFormatModuleTests]/[method:canSerializeModuleWithInitFuncs(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.WasmBinaryFormatModuleTests]/[method:canSerializeModuleWithInitFuncs(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected') diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.WasmBinaryFormatModuleTests]/[method:canSerializeModuleWithInitFuncs(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.WasmBinaryFormatModuleTests]/[method:canSerializeModuleWithInitFuncs(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected new file mode 100644 index 00000000..bbb76766 --- /dev/null +++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.WasmBinaryFormatModuleTests]/[method:canSerializeModuleWithInitFuncs(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected @@ -0,0 +1,38 @@ + +module.wasm: file format wasm 0x1 + +Section Details: + +Type[1]: + - type[0] () -> nil +Function[3]: + - func[0] sig=0 + - func[1] sig=0 + - func[2] sig=0 +Code[3]: + - func[0] size=2 + - func[1] size=2 + - func[2] size=2 +Custom: + - name: "name" + - func[0] + - func[1] + - func[2] +Custom: + - name: "linking" + - symbol table [count=3] + - 0: F func=0 [ binding=global vis=default ] + - 1: F func=1 [ binding=global vis=default ] + - 2: F func=2 [ binding=global vis=default ] + - init functions [count=2] + - 2: priority=0 + - 0: priority=4 + +Code Disassembly: + +000028 func[0] : + 000029: 0b | end +00002f func[1] : + 000030: 0b | end +000036 func[2] : + 000037: 0b | end \ No newline at end of file -- cgit v1.2.3